package com.salmon.study.iot;

import akka.actor.AbstractActor;
import akka.actor.Props;
import lombok.extern.slf4j.Slf4j;

/**
 * <p>
 * 类的描述信息
 * </p>
 *
 * @author 王洪庆 2019-04-25 20:49
 */
@Slf4j
public class IoTSupervisor extends AbstractActor {

    public static Props props() {
        return Props.create(IoTSupervisor.class);
    }

    @Override
    public void preStart()
    {
        log.info("IoT Application started");
    }

    @Override
    public void postStop()
    {
        log.info("IoT Application stopped");
    }


    @Override
    public Receive createReceive() {
        return receiveBuilder().build();
    }
}
